<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    你好，
    <span style="color: blue" th:text="${adminName}"></span>&nbsp;&nbsp;
    <a th:if="${session.isSysAdmin}" th:href="@{/admin/allAdmins}">账号管理</a>
    <table border="1" cellspacing="0" cellpadding="3">
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>学院</th>
            <th>日期</th>
            <th>证件类型</th>
            <th>证件号码</th>
            <th>籍贯</th>
            <th>手机号码</th>
            <th>当前位置</th>
            <th>身体状况</th>
            <th>粤康码</th>
            <th>行程卡</th>
            <th>疫苗接种情况</th>
        </tr>
        <tr th:each="report:${allReports}">
            <td>
                <span th:each="user:${allUsers}" th:if="${report.getUserId() == user.getUserId()}" th:text="${user.getUserNo()}"></span>
            </td>
            <td>
                <span th:each="user:${allUsers}" th:if="${report.getUserId() == user.getUserId()}" th:text="${user.getUserName()}"></span>
            </td>
            <td>
                <span th:each="user:${allUsers}" th:if="${report.getUserId() == user.getUserId()}" th:text="${user.getFacultyTitle()}"></span>
            </td>
            <td th:text="${report.getDate()}"></td>
            <td th:text="${report.getIDType()}"></td>
            <td th:text="${report.getIDNumber()}"></td>
            <td th:text="${report.getRPR()}"></td>
            <td th:text="${report.getPhone()}"></td>
            <td th:text="${report.getLocation()}"></td>
            <td th:text="${report.getState()}"></td>
            <td th:text="${report.getHealthColor()}"></td>
            <td th:text="${report.getTravelColor()}"></td>
            <td th:text="${report.getInoculated()}"></td>
        </tr>
    </table>
</body>
</html>